// animation.css
function animationHover(element, animation) {
  element = $(element);
  element.hover(
      function () {
        element.addClass('animated ' + animation);
      },
      function () {
        //动画完成之前移除class
        window.setTimeout(function () {
          element.removeClass('animated ' + animation);
        }, 2000);
      }
  );
}

// 拖动面板
function WinMove() {
  var element = "[class*=col]";
  var handle = ".ibox-title";
  var connect = "[class*=col]";
  $(element).sortable({
    handle: handle,
    connectWith: connect,
    tolerance: 'pointer',
    forcePlaceholderSize: true,
    opacity: 0.8,
  }).disableSelection();
};
